<include file="Public/HOME/HTML/head_html_5.html" />
<meta charset="utf-8"/>
<title>专题课程{$Think.const.TITLE}</title>
<link rel="stylesheet" type="text/css" href="/world/public/fontAwesome/css/font-awesome.min.css">
<include file="Public/ADMIN/HTML/Admin_header/admin_css_and_js.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_title.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_middle_list.html" />
<!-- 配置文件 -->
<js
	href="{$Think.const.DOMAIN_NAME}Public/Ueditor/ueditor/ueditor.config.js" />
<js
	href="{$Think.const.DOMAIN_NAME}Public/Ueditor/ueditor/ueditor.all.min.js" />
<script>
                            $(function(){
                                var ue = UE.getEditor('intro',{
                                    serverUrl :'{:U('Admin/Index/ueditor')}'
                                });
                            })                
</script>
 <div class="container-fluid main-content">
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <!-- <div class="widget"> -->
        <div class="widget-container fluid-height clearfix">
           		<div class="heading">
					<i class="icon-tags"></i>专题课程表
				</div>
            <div class="widget-body">
                <div id="horizontal-form">
                        <!-- 111111111111111111111111111111111 -->
                         <div class="tabbable">
                            <ul id="myTab11" class="nav nav-tabs tabs-flat" style="padding:20px 80px 0px 80px;">
                                <li class="active">
                                    <a href="#home11" data-toggle="tab">
                                        专题课程表
                                    </a>
                                </li>
                            
                               <!--    <li class="">
                                    <a href="#profile12" data-toggle="tab">
                                        专题结果
                                    </a>
                                </li> -->
                            </ul>
                            <div class="tab-content tabs-flat">
                                <div class="tab-pane active" id="home11">
                                	 <div class="col-md-12">
                        	<div style="margin:20px auto;width:70%">
                        	<p style="font-size: 24px; color: #007aff; text-align: center; font-family: 微软雅黑, 宋体;">
										{$special.sname}</p>
                        	<table class="mt10" style="border-collapse: collapse; border-spacing: 0px; margin-top: 20px; border: 1px solid rgb(205, 232, 239); color: rgb(0, 0, 0); font-family: Simsun; font-size: 12px; line-height: normal;"> 
								 <thead style="background-color:#D3D3D3; height: 68px; line-height: 68px; background-position: initial initial; background-repeat: initial initial;"> 
								  <tr> 
								   <th style="margin: 0px; padding: 0px 0px 0px 15px; border: 1px solid rgb(205, 232, 239);" width="15%">课程名称</th> 
								   <th style="margin: 0px; padding: 0px 0px 0px 15px; border: 1px solid rgb(205, 232, 239);" width="20%">开课时间</th> 
								   <th style="margin: 0px; padding: 0px 0px 0px 15px; border: 1px solid rgb(205, 232, 239);" width="15%">讲师</th> 
								   <th style="margin: 0px; padding: 0px 0px 0px 15px; border: 1px solid rgb(205, 232, 239);" width="25%">课程内容</th> 
								    <th style="margin: 0px; padding: 0px 0px 0px 15px; border: 1px solid rgb(205, 232, 239);" width="15%">课程状态</th> 
								    <th style="margin: 0px; padding: 0px 0px 0px 15px; border: 1px solid rgb(205, 232, 239);" width="10%">操作</th> 
								  </tr> 
								 </thead> 
								 <tbody> 
								 <volist name="Res" id="vo">
								  <tr> 
								   <td style="margin: 0px; padding: 15px; border: 1px solid rgb(205, 232, 239); line-height: 20px;"><a href="{:U('specialcourse/stutable',array('scid'=>$vo['scid']))}">{$vo.scname}</a></td> 

								   <td style="margin: 0px; padding: 15px; border: 1px solid rgb(205, 232, 239); line-height: 20px;">上课时间（{$vo.week}）：<br> {$vo.startdate}&nbsp;<br> 到<br> {$vo.enddate}</td> 
								   <td style="margin: 0px; padding: 15px; border: 1px solid rgb(205, 232, 239); line-height: 20px;">{$special.majorteacher}</td> 
								  <td style="margin: 0px; padding: 15px; border: 1px solid rgb(205, 232, 239); line-height: 20px;" width="250">{$vo.content}</td> 		
								   <td style="margin: 0px; padding: 15px; border: 1px solid rgb(205, 232, 239); line-height: 20px;"><span style="color: rgb(0, 0, 0); font-family: Simsun; font-size: 12px; line-height: 20px;">{$vo.status}</span></td> 
								   <td style="margin: 0px; padding: 15px; border: 1px solid rgb(205, 232, 239); line-height: 20px;"><span style="color: rgb(0, 0, 0); font-family: Simsun; font-size: 12px; line-height: 20px;"></span><a href="{$Think.const.DOMAIN_NAME}Admin/Specialcourse/delSpecialCourse/id/{$vo.scid}" title="删除" onclick="if(confirm('確定刪除么？')==0){ return false;}"><i class="icon-trash"></i></a>&nbsp;&nbsp;<a class=" icon-pencil" title="修改" href="{:U('specialcourse/edit',array('scid'=>$vo['scid']))}"></a></td> 
								  </tr> 
								  </volist>
								 </tbody>
								</table>

                        </div>
                        	</div>
                                </div>
                                <!--       <div class="tab-pane" id="profile12">
                                        	<div class="col-md-12" >
                               			<div style="width: 60%;margin:30px auto">
									
										<div class="panel panel-success">
										  <div class="panel-heading" style="height:40px;font-size:20px;padding:10px;">{$special.sname}  <span style="float:right"><i class="icon-edit" ></i></span>
										  </div>

										  <div class="panel-body">

										 	 <div id="resultContent">
										  <if condition="$list['result'] eq null">
										    <p style="font-size: 24px; color:red; margin:20px auto;  text-align: center; font-family: 微软雅黑, 宋体;">
										    抱歉暂无专题结果！
											</p>

											<else/>
											{$special.result}
											</if>
												</div>

										<div id="addresult" style="display:none">
											<form method="post" id="resuledesc" class="form-horizontal" enctype="multipart/form-data">
												<div class="form-group">
											<div class="col-md-12">
												<script id="intro" name="result" type="text/plain"></script>
													<script type="text/javascript">
						                                UE.getEditor('intro', {
						                                    theme: "default", //鐨偆
						                                    lang: "zh-cn", //璇█
						                                    initialFrameWidth: "100%", //鍒濆鍖栫紪杈戝櫒瀹藉害,榛樿800
						                                    initialFrameHeight: 500,
						                                    toolbars: [['source', 'undo', //鎾ら攢
						                                 'redo', //閲嶅仛
						                                 'bold', //鍔犵矖
						                                 'italic', //鏂滀綋
						                                 'underline', //涓嬪垝绾�
						                                 'selectall', //鍏ㄩ��
						                                 'preview', //棰勮
						                                 'horizontal', //鍒嗛殧绾�
						                                 'cleardoc', //娓呯┖鏂囨。
						                                 'fontfamily', //瀛椾綋
						                                 'fontsize', //瀛楀彿
						                                 'paragraph', //娈佃惤鏍煎紡
						                                 'simpleupload', //鍗曞浘涓婁紶
						                                 'insertimage', //澶氬浘涓婁紶
						                                 'link', //瓒呴摼鎺�
						                                 'emotion', //琛ㄦ儏
						                                 'justifyleft', //灞呭乏瀵归綈
						                                 'justifyright', //灞呭彸瀵归綈
						                                 'justifycenter', //灞呬腑瀵归綈
						                                 'justifyjustify', //涓ょ瀵归綈
						                                 'forecolor', //瀛椾綋棰滆壊
						                                 'backcolor', //鑳屾櫙鑹�
						                                 'insertorderedlist', //鏈夊簭鍒楄〃
						                                 'insertunorderedlist', //鏃犲簭鍒楄〃
						                                 'fullscreen', //鍏ㄥ睆
						                                 'imagenone', //榛樿
						                                 'imageleft', //宸︽诞鍔�
						                                 'imageright', //鍙虫诞鍔�
						                                 'imagecenter', //灞呬腑
						                                 'lineheight', //琛岄棿璺�
						                                 ]]
						                                });
						                            </script>
											</div>
										</div>
									<div class="form-group">
												<div class="modal-footer">  
												        <button type="button" class="btn btn-default" id="close">关闭</button>  
												        <button type="submit" class="btn btn-primary" id="save_result">保存</button>  
												      	</div> 
														</div>
							     		 </form>
							     		 			
											</div>



										  </div>

									
										

										</div>
									</div>
									   	<script type="text/javascript">
									   	var aid={$special['sid']};
							 			$(".icon-edit").click(function(){
							 				$("#resultContent").hide();
							 				$("#addresult").show();
							 			});
							 			$("#close").click(function(){
							 				$("#resultContent").show();
							 				$("#addresult").hide();
							 			});

							 			$("#save_result").click(function(){
							 				alert(aid);
							 				  $.ajax({
											  	type:"get",
					            				url:"__CONTROLLER__/saveresult/sid/"+aid,
					            				data: $("form:eq(1)").serialize(),
											    success: function(data) {
											    	alert(data);
											    	// if(data==1){alert("添加成功");}
											    	// else{ alert("添加失败");}
											    	 }
											});
							 			});
							
										</script>


							   
							      </div>  
							      
							    </div><!-- /.modal-content -->   -->
							  </div><!-- /.modal-dialog -->  

                                </div>
                       

                        
                </div>
            </div>
                </div>
            </div>
        </div>
    </div>
</body>
<include file="Public/HOME/HTML/footer.html" />
</html>
	
				

			